package tools.generRandomBuff;

/**
 * @Author: Forx
 * @Data: 2021/6/21
 * @Desc: Algorithm - tools.generRandomBuff
 * @Version: v1.0
 */
public class RandomBuff {
    public static int[] generateRandomBuff(int maxValue,int maxLen){
        int[] buff = new int[(int)(Math.random()*maxLen) + 1];
        for (int i = 0; i < buff.length; i++) {
            buff[i] =(int) (Math.random()*maxValue) +1;
        }
        return buff;
    }

}
